﻿//(function ($) {
//    $.fn.validationEngineLanguage = function () {
//    };
//    $.validationEngineLanguage = {
//        newLang: function () {
//            $.validationEngineLanguage.allRules = {
//                "required": { // Add your regex rules here, you can take telephone as an example
//                    "regex": "none",
//                    "alertText": "* 非空选项",
//                    "alertTextCheckboxMultiple": "* 请选择一个单选框",
//                    "alertTextCheckboxe": "* 请选择一个复选框",
//                    "alertTextDateRange": "* Both date range fields are required"
//                },
//                "requiredInFunction": {
//                    "func": function (field, rules, i, options) {
//                        return (field.val() == "test") ? true : false;
//                    },
//                    "alertText": "* Field must equal test"
//                },
//                "dateRange": {
//                    "regex": "none",
//                    "alertText": "* Invalid ",
//                    "alertText2": "Date Range"
//                },
//                "dateTimeRange": {
//                    "regex": "none",
//                    "alertText": "* Invalid ",
//                    "alertText2": "Date Time Range"
//                },
//                "minSize": {
//                    "regex": "none",
//                    "alertText": "* 至少 ",
//                    "alertText2": " 个字符"
//                },
//                "maxSize": {
//                    "regex": "none",
//                    "alertText": "* 最多 ",
//                    "alertText2": " 个字符"
//                },
//                "groupRequired": {
//                    "regex": "none",
//                    "alertText": "* You must fill one of the following fields"
//                },
//                "min": {
//                    "regex": "none",
//                    "alertText": "* Minimum value is "
//                },
//                "max": {
//                    "regex": "none",
//                    "alertText": "* Maximum value is "
//                },
//                "past": {
//                    "regex": "none",
//                    "alertText": "* Date prior to "
//                },
//                "future": {
//                    "regex": "none",
//                    "alertText": "* Date past "
//                },
//                "maxCheckbox": {
//                    "regex": "none",
//                    "alertText": "* Maximum ",
//                    "alertText2": " options allowed"
//                },
//                "minCheckbox": {
//                    "regex": "none",
//                    "alertText": "* Please select ",
//                    "alertText2": " options"
//                },
//                "equals": {
//                    "regex": "none",
//                    "alertText": "* Fields do not match"
//                },
//                "creditCard": {
//                    "regex": "none",
//                    "alertText": "* Invalid credit card number"
//                },
//                "telephone": {
//                    "regex": /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/,
//                    "alertText": "* 请输入有效的电话号码,如:0537-29292929."
//                },
//                "mobilephone": {
//                    "regex": /^1[3|4|5|8][0-9]\d{4,8}$/,
//                    "alertText": "* 请输入有效的手机号码"
//                },
//                "phone": {
//                    // credit: jquery.h5validate.js / orefalo
//                    "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/,
//                    "alertText": "* 请输入有效的电话号码"
//                },
//                "email": {
//                    // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#    e-mail-state-%28type=email%29 )
//                    "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
//                    "alertText": "* 请输入有效的邮箱地址"
//                },
//                "integer": {
//                    "regex": /^[\-\+]?\d+$/,
//                    "alertText": "* 请输入正整数或0"
//                },
//                "number": {
//                    // Number, including positive, negative, and floating decimal. credit: orefalo
//                    "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
//                    "alertText": "* 不是有效的数字"
//                },
//                "date": {
//                    //	Check if date is valid by leap year
//                    "func": function (field) {
//                        var pattern = new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/);
//                        var match = pattern.exec(field.val());
//                        if (match == null)
//                            return false;

//                        var year = match[1];
//                        var month = match[2] * 1;
//                        var day = match[3] * 1;
//                        var date = new Date(year, month - 1, day); // because months starts from 0.

//                        return (date.getFullYear() == year && date.getMonth() == (month - 1) && date.getDate() == day);
//                    },
//                    "alertText": "* Invalid date, must be in YYYY-MM-DD format"
//                },
//                "ipv4": {
//                    "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
//                    "alertText": "* Invalid IP address"
//                },
//                "url": {
//                    "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
//                    "alertText": "* Invalid URL"
//                },
//                "onlyNumberSp": {
//                    "regex": /^[0-9\ ]+$/,
//                    "alertText": "* Numbers only"
//                },
//                "onlyLetterSp": {
//                    "regex": /^[a-zA-Z\ \']+$/,
//                    "alertText": "* Letters only"
//                },
//                "onlyLetterNumber": {
//                    "regex": /^[0-9a-zA-Z]+$/,
//                    "alertText": "* No special characters allowed"
//                },
//                // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
//                "ajaxUserCall": {
//                    "url": "ajaxValidateFieldUser",
//                    // you may want to pass extra data on the ajax call
//                    "extraData": "name=eric",
//                    "alertText": "* This user is already taken",
//                    "alertTextLoad": "* Validating, please wait"
//                },
//                "ajaxUserCallPhp": {
//                    "url": "phpajax/ajaxValidateFieldUser.php",
//                    // you may want to pass extra data on the ajax call
//                    "extraData": "name=eric",
//                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
//                    "alertTextOk": "* This username is available",
//                    "alertText": "* This user is already taken",
//                    "alertTextLoad": "* Validating, please wait"
//                },
//                "ajaxNameCall": {
//                    // remote json service location
//                    "url": "ajaxValidateFieldName",
//                    // error
//                    "alertText": "* This name is already taken",
//                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
//                    "alertTextOk": "* This name is available",
//                    // speaks by itself
//                    "alertTextLoad": "* Validating, please wait"
//                },
//                "ajaxNameCallPhp": {
//                    // remote json service location
//                    "url": "phpajax/ajaxValidateFieldName.php",
//                    // error
//                    "alertText": "* This name is already taken",
//                    // speaks by itself
//                    "alertTextLoad": "* Validating, please wait"
//                },
//                "validate2fields": {
//                    "alertText": "* Please input HELLO"
//                },
//                //tls warning:homegrown not fielded 
//                "dateFormat": {
//                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
//                    "alertText": "* Invalid Date"
//                },
//                //tls warning:homegrown not fielded 
//                "dateTimeFormat": {
//                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
//                    "alertText": "* Invalid Date or Date Format",
//                    "alertText2": "Expected Format: ",
//                    "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM or ",
//                    "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
//                }
//            };

//        }
//    };

//    $.validationEngineLanguage.newLang();

//})(jQuery);
(function ($) {
    $.fn.validationEngineLanguage = function () {
    };
    $.validationEngineLanguage = {
        newLang: function () {
            $.validationEngineLanguage.allRules = {
                "required": { // Add your regex rules here, you can take telephone as an example
                    "regex": "none",
                    "alertText": "* 非空选项",
                    "alertTextCheckboxMultiple": "* 请选择一个单选框",
                    "alertTextCheckboxe": "* 请选择一个复选框",
                    "alertTextDateRange": "* Both date range fields are required"
                },
                "requiredInFunction": {
                    "func": function (field, rules, i, options) {
                        return (field.val() == "test") ? true : false;
                    },
                    "alertText": "* Field must equal test"
                },
                "idNumber": {
                    "func": function (field) {
                        if (field.val() != "") {
                            //身份证的地区代码对照  
                            var aCity = { 11: "北京", 12: "天津", 13: "河北", 14: "山西", 15: "内蒙古", 21: "辽宁", 22: "吉林", 23: "黑龙江", 31: "上海", 32: "江苏", 33: "浙江", 34: "安徽", 35: "福建", 36: "江西", 37: "山东", 41: "河南", 42: "湖北", 43: "湖南", 44: "广东", 45: "广西", 46: "海南", 50: "重庆", 51: "四川", 52: "贵州", 53: "云南", 54: "西藏", 61: "陕西", 62: "甘肃", 63: "青海", 64: "宁夏", 65: "新疆", 71: "台湾", 81: "香港", 82: "澳门", 91: "国外" };
                            //获取证件号码  
                            var person_id = field.val();
                            //合法性验证  
                            var sum = 0;
                            //出生日期  
                            var birthday;
                            //验证长度与格式规范性的正则  
                            var patten = new RegExp(/(^\d{15}$)|(^\d{17}(\d|x|X)$)/i);
                            if (patten.exec(person_id)) {
                                //验证身份证的合法性的正则  
                                patten = new RegExp(/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/);
                                if (patten.exec(person_id)) {
                                    //获取15位证件号中的出生日期并转位正常日期                   
                                    birthday = "19" + person_id.substring(6, 8) + "-" + person_id.substring(8, 10) + "-" + person_id.substring(10, 12);
                                }
                                else {
                                    person_id = person_id.replace(/x$/i, "a");
                                    //获取18位证件号中的出生日期  
                                    birthday = person_id.substring(6, 10) + "-" + person_id.substring(10, 12) + "-" + person_id.substring(12, 14);
                                    //校验18位身份证号码的合法性  
                                    for (var i = 17; i >= 0; i--) {
                                        sum += (Math.pow(2, i) % 11) * parseInt(person_id.charAt(17 - i), 11);
                                    }
                                    if (sum % 11 != 1) {
                                        // alert("你输入的身份证号非法");
                                        return false;
                                    }
                                }
                                //检测证件地区的合法性  
                                person_id = person_id.replace(/x$/i, "a");
                                if (aCity[parseInt(person_id.substring(0, 2))] == null) {
                                    //alert("身份证地区非法");
                                    return false;
                                }
                                var dateStr = new Date(birthday.replace(/-/g, "/"));
                                //为值添加0  
                                function Append_zore(temp) {
                                    if (temp < 10) {
                                        return "0" + temp;
                                    }
                                    else {
                                        return temp;
                                    }
                                }
                                //alert(birthday +":"+(dateStr.getFullYear()+"-"+ Append_zore(dateStr.getMonth()+1)+"-"+ Append_zore(dateStr.getDate())))  
                                if (birthday != (dateStr.getFullYear() + "-" + Append_zore(dateStr.getMonth() + 1) + "-" + Append_zore(dateStr.getDate()))) {
                                    // alert("身份证的出生日期非法");
                                    return false;
                                }
                                return true;
                            }
                            else {
                                //alert("输入的身份证号码的长度或格式错误");
                                return false;
                            }
                        }
                        else {
                            return false;
                        }

                    },
                    "alertText": "请输入有效的身份证号"
                },
                "password": {
                    "regex": /^.{4,4}$/,
                    "alertText": "长度为4个字符"
                },
                "dateRange": {
                    "regex": "none",
                    "alertText": "* Invalid ",
                    "alertText2": "Date Range"
                },
                "dateTimeRange": {
                    "regex": "none",
                    "alertText": "* Invalid ",
                    "alertText2": "Date Time Range"
                },
                "minSize": {
                    "regex": "none",
                    "alertText": "* 至少 ",
                    "alertText2": " 个字符"
                },
                "maxSize": {
                    "regex": "none",
                    "alertText": "* 最多 ",
                    "alertText2": " 个字符"
                },
                "groupRequired": {
                    "regex": "none",
                    "alertText": "* You must fill one of the following fields"
                },
                "min": {
                    "regex": "none",
                    "alertText": "* Minimum value is "
                },
                "max": {
                    "regex": "none",
                    "alertText": "* Maximum value is "
                },
                "past": {
                    "regex": "none",
                    "alertText": "* Date prior to "
                },
                "future": {
                    "regex": "none",
                    "alertText": "* Date past "
                },
                "maxCheckbox": {
                    "regex": "none",
                    "alertText": "* Maximum ",
                    "alertText2": " options allowed"
                },
                "minCheckbox": {
                    "regex": "none",
                    "alertText": "* Please select ",
                    "alertText2": " options"
                },
                "equals": {
                    "regex": "none",
                    "alertText": "两次输入不一致!"
                },
                "creditCard": {
                    "regex": "none",
                    "alertText": "* Invalid credit card number"
                },
                "telephone": {
                    "regex": /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/,
                    "alertText": "* 请输入有效的电话号码,如:0537-29292929."
                },
                "mobilephone": {
                    "regex": /^1[3|4|5|8][0-9]\d{4,8}$/,
                    "alertText": "* 请输入有效的手机号码,如:13888888888."
                },
                "phone": {
                    // credit: jquery.h5validate.js / orefalo
                    "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/,
                    "alertText": "* 请输入有效的电话号码"
                },
                "email": {
                    // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#    e-mail-state-%28type=email%29 )
                    "regex": /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
                    "alertText": "* 请输入有效的邮箱地址"
                },
                "integer": {
                    "regex": /^[\-\+]?\d+$/,
                    "alertText": "* 请输入正整数"
                },
                "number": {
                    // Number, including positive, negative, and floating decimal. credit: orefalo
                    "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,
                    "alertText": "* 内容必须为数字"
                },
                "date": {
                    //	Check if date is valid by leap year
                    "func": function (field) {
                        var pattern = new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/);
                        var match = pattern.exec(field.val());
                        if (match == null)
                            return false;

                        var year = match[1];
                        var month = match[2] * 1;
                        var day = match[3] * 1;
                        var date = new Date(year, month - 1, day); // because months starts from 0.

                        return (date.getFullYear() == year && date.getMonth() == (month - 1) && date.getDate() == day);
                    },
                    "alertText": "* Invalid date, must be in YYYY-MM-DD format"
                },
                "ipv4": {
                    "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,
                    "alertText": "* 错误的IP地址"
                },
                "url": {
                    "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,
                    "alertText": "* 错误的URL地址,例：http://www.baidu.com"
                },
                "onlyNumberSp": {
                    "regex": /^[0-9\ ]+$/,
                    "alertText": "* 只能为数字"
                },
                "onlyLetterSp": {
                    "regex": /^[a-zA-Z\ \']+$/,
                    "alertText": "* Letters only"
                },
                "onlyLetterNumber": {
                    "regex": /^[0-9a-zA-Z]+$/,
                    "alertText": "* 只限包含数字和字母"
                },
                // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings
                "ajaxUserCall": {
                    "url": "ajaxValidateFieldUser",
                    // you may want to pass extra data on the ajax call
                    "extraData": "name=eric",
                    "alertText": "* This user is already taken",
                    "alertTextLoad": "* Validating, please wait"
                },
                "ajaxUserCallPhp": {
                    "url": "phpajax/ajaxValidateFieldUser.php",
                    // you may want to pass extra data on the ajax call
                    "extraData": "name=eric",
                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
                    "alertTextOk": "* This username is available",
                    "alertText": "* This user is already taken",
                    "alertTextLoad": "* Validating, please wait"
                },
                "ajaxNameCall": {
                    // remote json service location
                    "url": "ajaxValidateFieldName",
                    // error
                    "alertText": "* This name is already taken",
                    // if you provide an "alertTextOk", it will show as a green prompt when the field validates
                    "alertTextOk": "* This name is available",
                    // speaks by itself
                    "alertTextLoad": "* Validating, please wait"
                },
                "ajaxNameCallPhp": {
                    // remote json service location
                    "url": "phpajax/ajaxValidateFieldName.php",
                    // error
                    "alertText": "* This name is already taken",
                    // speaks by itself
                    "alertTextLoad": "* Validating, please wait"
                },
                "validate2fields": {
                    "alertText": "* Please input HELLO"
                },
                //tls warning:homegrown not fielded 
                "dateFormat": {
                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/,
                    "alertText": "* Invalid Date"
                },
                //tls warning:homegrown not fielded 
                "dateTimeFormat": {
                    "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/,
                    "alertText": "* Invalid Date or Date Format",
                    "alertText2": "Expected Format: ",
                    "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM or ",
                    "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM"
                }
            };

        }
    };

    $.validationEngineLanguage.newLang();

})(jQuery);
